Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions HelpStackExample/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.helpstackexample"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:minSdkVersion="9"
android:targetSdkVersion="22" />

<uses-permission android:name="android.permission.INTERNET"/>
Expand All @@ -22,7 +21,6 @@
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Expand Down
6 changes: 3 additions & 3 deletions HelpStackExample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':helpstack')

compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:appcompat-v7:23.0.0'
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileSdkVersion 23
buildToolsVersion "23.0.0"

sourceSets {
main {
Expand Down
5 changes: 2 additions & 3 deletions HelpStackExample/res/values-v14/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="HSAppBaseTheme" parent="Theme.AppCompat.Light">
<style name="HSAppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
<!-- <item name="android:actionBarStyle">@style/MyActionBar</item> -->
</style>

<style name="MyActionBar"
parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">

</style>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

import com.tenmiles.helpstack.HSHelpStack;
import com.tenmiles.helpstack.gears.HSEmailGear;
import com.tenmiles.helpstack.gears.HSZendeskGear;
import com.tenmiles.helpstack.gears.HSHappyfoxGear;



public class HSApplication extends Application{
public class HSApplication extends Application {

HSHelpStack helpStack;

Expand All @@ -18,16 +16,17 @@ public void onCreate() {

helpStack = HSHelpStack.getInstance(this);

HSEmailGear emailGear = new HSEmailGear( "example@happyfox.com",R.xml.articles);
helpStack.setGear(emailGear);

// HSEmailGear emailGear = new HSEmailGear("foo@bar.com", R.xml.articles);
// helpStack.setGear(emailGear);

/* Uncomment the following to use the Happyfox gear with appropriate support email address */
// HSHappyfoxGear happyfoxGear = new HSHappyfoxGear("https://example.happyfox.com",
// "<Your API Key>",
// "<Your Auth Code>",
// "<Category ID>", "<Priority ID>");
// helpStack.setGear(happyfoxGear);
/* Uncomment the following to use the HappyFox gear with appropriate support email address */

HSHappyfoxGear happyfoxGear = new HSHappyfoxGear(
"http://acmewidgetsco.happyfox.com",
"b3416a6ebf4245bf9bbeb55b296ecf92",
"6b562e17b1ab4c37bc8c955af8f5cc5c",
"107",
"1");
helpStack.setGear(happyfoxGear);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);

if (savedInstanceState == null) {
getSupportFragmentManager().beginTransaction()
.add(R.id.container, new PlaceholderFragment()).commit();
getSupportFragmentManager().beginTransaction().add(R.id.container, new PlaceholderFragment()).commit();
}

getSupportActionBar().setDisplayHomeAsUpEnabled(false);
Expand All @@ -33,25 +32,18 @@ protected void onCreate(Bundle savedInstanceState) {

@Override
public boolean onCreateOptionsMenu(Menu menu) {

// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}



/**
* A placeholder fragment containing a simple view.
Expand All @@ -62,10 +54,8 @@ public PlaceholderFragment() {
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_main, container,
false);
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_main, container, false);
rootView.findViewById(R.id.button1).setOnClickListener(new OnClickListener() {

@Override
Expand Down
2 changes: 1 addition & 1 deletion helpstack/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:minSdkVersion="9"
android:targetSdkVersion="22" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
8 changes: 4 additions & 4 deletions helpstack/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'maven'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')

compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:appcompat-v7:23.0.0'

compile 'com.google.code.gson:gson:2.3'

Expand All @@ -13,8 +13,8 @@ dependencies {
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileSdkVersion 23
buildToolsVersion "23.0.0"

sourceSets {
main {
Expand Down Expand Up @@ -45,7 +45,7 @@ uploadArchives {
repositories.mavenDeployer {
pom.groupId = 'com.tenmiles'
pom.artifactId = 'helpstack'
pom.version = '1.1.3'
pom.version = '1.2.0'
// Add other pom properties here if you want (developer details / licenses)
repository(url: "file:///Users/anirudh/Desktop/gradleRelease/")
}
Expand Down
Binary file added helpstack/res/drawable-hdpi/hs_accept.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added helpstack/res/drawable-hdpi/hs_accept_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed helpstack/res/drawable-hdpi/hs_action_accept_img.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed helpstack/res/drawable-hdpi/hs_action_forward_img.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified helpstack/res/drawable-hdpi/hs_add_attachment_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added helpstack/res/drawable-hdpi/hs_attachment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed helpstack/res/drawable-hdpi/hs_attachment_img.png
Binary file not shown.
Binary file added helpstack/res/drawable-hdpi/hs_attachment_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added helpstack/res/drawable-hdpi/hs_disclosure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed helpstack/res/drawable-hdpi/hs_disclosure_img.png
Binary file not shown.
Binary file added helpstack/res/drawable-hdpi/hs_disclosure_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added helpstack/res/drawable-hdpi/hs_download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added helpstack/res/drawable-hdpi/hs_download_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added helpstack/res/drawable-hdpi/hs_forward.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added helpstack/res/drawable-hdpi/hs_forward_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified helpstack/res/drawable-hdpi/hs_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added helpstack/res/drawable-hdpi/hs_search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed helpstack/res/drawable-hdpi/hs_search_img.png
Binary file not shown.
Binary file removed helpstack/res/drawable-hdpi/hs_search_img_light.png
Diff not rendered.
Binary file added helpstack/res/drawable-hdpi/hs_search_light.png
Binary file added helpstack/res/drawable-hdpi/hs_send.png
Binary file added helpstack/res/drawable-hdpi/hs_send_light.png
Binary file removed helpstack/res/drawable-hdpi/hs_send_now_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-mdpi/hs_accept.png
Binary file added helpstack/res/drawable-mdpi/hs_accept_light.png
Binary file removed helpstack/res/drawable-mdpi/hs_action_accept_img.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed helpstack/res/drawable-mdpi/hs_action_forward_img.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified helpstack/res/drawable-mdpi/hs_add_attachment_img.png
Binary file added helpstack/res/drawable-mdpi/hs_attachment.png
Binary file removed helpstack/res/drawable-mdpi/hs_attachment_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-mdpi/hs_attachment_light.png
Binary file added helpstack/res/drawable-mdpi/hs_disclosure.png
Binary file removed helpstack/res/drawable-mdpi/hs_disclosure_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-mdpi/hs_disclosure_light.png
Binary file added helpstack/res/drawable-mdpi/hs_download.png
Binary file added helpstack/res/drawable-mdpi/hs_download_light.png
Binary file added helpstack/res/drawable-mdpi/hs_forward.png
Binary file added helpstack/res/drawable-mdpi/hs_forward_light.png
Binary file modified helpstack/res/drawable-mdpi/hs_launcher.png
Diff not rendered.
Binary file added helpstack/res/drawable-mdpi/hs_search.png
Binary file removed helpstack/res/drawable-mdpi/hs_search_img.png
Diff not rendered.
Binary file removed helpstack/res/drawable-mdpi/hs_search_img_light.png
Diff not rendered.
Binary file added helpstack/res/drawable-mdpi/hs_search_light.png
Binary file added helpstack/res/drawable-mdpi/hs_send.png
Binary file added helpstack/res/drawable-mdpi/hs_send_light.png
Binary file removed helpstack/res/drawable-mdpi/hs_send_now_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-xhdpi/hs_accept.png
Binary file added helpstack/res/drawable-xhdpi/hs_accept_light.png
Binary file removed helpstack/res/drawable-xhdpi/hs_action_accept_img.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed helpstack/res/drawable-xhdpi/hs_action_forward_img.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified helpstack/res/drawable-xhdpi/hs_add_attachment_img.png
Binary file added helpstack/res/drawable-xhdpi/hs_attachment.png
Binary file removed helpstack/res/drawable-xhdpi/hs_attachment_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-xhdpi/hs_attachment_light.png
Binary file added helpstack/res/drawable-xhdpi/hs_disclosure.png
Binary file removed helpstack/res/drawable-xhdpi/hs_disclosure_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-xhdpi/hs_disclosure_light.png
Binary file added helpstack/res/drawable-xhdpi/hs_download.png
Binary file added helpstack/res/drawable-xhdpi/hs_download_light.png
Binary file added helpstack/res/drawable-xhdpi/hs_forward.png
Binary file added helpstack/res/drawable-xhdpi/hs_forward_light.png
Binary file modified helpstack/res/drawable-xhdpi/hs_launcher.png
Diff not rendered.
Binary file added helpstack/res/drawable-xhdpi/hs_search.png
Binary file removed helpstack/res/drawable-xhdpi/hs_search_img.png
Diff not rendered.
Binary file removed helpstack/res/drawable-xhdpi/hs_search_img_light.png
Diff not rendered.
Binary file added helpstack/res/drawable-xhdpi/hs_search_light.png
Binary file added helpstack/res/drawable-xhdpi/hs_send.png
Binary file added helpstack/res/drawable-xhdpi/hs_send_light.png
Binary file removed helpstack/res/drawable-xhdpi/hs_send_now_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-xxhdpi/hs_accept.png
Binary file added helpstack/res/drawable-xxhdpi/hs_accept_light.png
Binary file removed helpstack/res/drawable-xxhdpi/hs_action_accept_img.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed helpstack/res/drawable-xxhdpi/hs_action_forward_img.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified helpstack/res/drawable-xxhdpi/hs_add_attachment_img.png
Binary file added helpstack/res/drawable-xxhdpi/hs_attachment.png
Binary file removed helpstack/res/drawable-xxhdpi/hs_attachment_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-xxhdpi/hs_disclosure.png
Binary file removed helpstack/res/drawable-xxhdpi/hs_disclosure_img.png
Diff not rendered.
Binary file added helpstack/res/drawable-xxhdpi/hs_download.png
Binary file added helpstack/res/drawable-xxhdpi/hs_download_light.png
Binary file added helpstack/res/drawable-xxhdpi/hs_forward.png
Binary file added helpstack/res/drawable-xxhdpi/hs_forward_light.png
Binary file modified helpstack/res/drawable-xxhdpi/hs_launcher.png
Binary file added helpstack/res/drawable-xxhdpi/hs_search.png
Binary file removed helpstack/res/drawable-xxhdpi/hs_search_img.png
Diff not rendered.
Diff not rendered.
Binary file added helpstack/res/drawable-xxhdpi/hs_search_light.png
Binary file added helpstack/res/drawable-xxhdpi/hs_send.png
Binary file added helpstack/res/drawable-xxhdpi/hs_send_light.png
Binary file removed helpstack/res/drawable-xxhdpi/hs_send_now_img.png
Diff not rendered.
2 changes: 1 addition & 1 deletion helpstack/res/drawable/left_chat_bubble.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<corners android:radius="6px"/>
<solid android:color="@color/hs_leftchat_bubblecolor"></solid>
<padding android:left="10dp" android:right="10dp" android:bottom="10dp" android:top="10dp"/>
<padding android:left="10dp" android:right="10dp" android:bottom="6dp"/>

</shape>
2 changes: 1 addition & 1 deletion helpstack/res/drawable/right_chat_bubble.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<corners android:radius="6px"/>
<solid android:color="@color/hs_rightchat_bubblecolor"/>
<padding android:left="10dp" android:right="10dp" android:bottom="10dp" android:top="10dp"/>
<padding android:left="10dp" android:right="10dp" android:bottom="6dp" />

</shape>
2 changes: 1 addition & 1 deletion helpstack/res/layout/hs_activity_edit_attachment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
android:orientation="vertical"
tools:context=".MainActivity" >

<com.tenmiles.helpstack.activities.DrawingView
<com.tenmiles.helpstack.theme.widget.DrawingView
android:id="@+id/drawing"
android:layout_width="fill_parent"
android:layout_height="0dp"
Expand Down
1 change: 0 additions & 1 deletion helpstack/res/layout/hs_expandable_child_home_default.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/hs_listView_childBackgroundStyle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
android:layout_height="match_parent"
android:paddingLeft="@dimen/hs_chatbubbleMarginWidth"
android:paddingRight="@dimen/hs_chatbubbleMarginWidth"
android:paddingBottom="10dp"
android:paddingTop="10dp" >
android:paddingBottom="4dp"
android:paddingTop="4dp" >

<TextView
android:id="@+id/name"
style="@style/hs_smallTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="10dp"
android:text=""
style="@style/hs_smallTextStyle"/>
android:text=""/>

<View
style="@style/hs_leftChatBubbleTriangleStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
android:layout_height="match_parent"
android:paddingLeft="@dimen/hs_chatbubbleMarginWidth"
android:paddingRight="@dimen/hs_chatbubbleMarginWidth"
android:paddingBottom="10dp"
android:paddingTop="10dp" >
android:paddingBottom="4dp"
android:paddingTop="4dp" >

<TextView
android:id="@+id/name"
Expand Down Expand Up @@ -65,11 +65,9 @@

<ImageView
android:id="@+id/attachment_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignRight="@id/textlayout"
android:paddingBottom="20dp"
android:paddingLeft="20dp"
android:layout_below="@id/textlayout"
android:src="@drawable/hs_attachment_icon" />

Expand Down
15 changes: 15 additions & 0 deletions helpstack/res/layout/hs_expandable_footer_progress_bar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<ProgressBar
android:id="@+id/progressBar1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:visibility="gone"/>

</LinearLayout>
6 changes: 6 additions & 0 deletions helpstack/res/layout/hs_expandable_parent_home_default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
style="@style/hs_listView_headerBackgroundStyle"
android:orientation="vertical" >

<View
android:layout_width="match_parent"
android:layout_height="12dp"
style="@style/hs_backgroundStyle"
/>

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
Expand Down
16 changes: 10 additions & 6 deletions helpstack/res/layout/hs_fragment_issue_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
android:layout_height="match_parent"
android:groupIndicator="@null"
android:layout_above="@+id/replyLayout"
android:dividerHeight="1dip"
android:listSelector="#0000"
android:childDivider="@color/hs_transparent_color"
android:cacheColorHint="@color/hs_transparent_color" />

<RelativeLayout
Expand All @@ -26,16 +26,19 @@
<ImageView
android:id="@+id/attachmentbutton"
android:layout_alignParentLeft="true"
android:layout_alignBottom="@+id/replyEditText"
android:layout_centerVertical="true"
android:layout_marginLeft="8dp"
android:layout_marginRight="4dp"
android:layout_height="30dp"
android:layout_width="30dp"
android:src="@drawable/hs_add_attachment"/>

<EditText
android:id="@+id/replyEditText"
android:theme="@style/hs_editText_defaultStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginLeft="4dp"
android:layout_toRightOf="@id/attachmentbutton"
android:layout_marginRight="5dp"
android:gravity="bottom"
Expand All @@ -46,12 +49,13 @@
<ImageView
android:id="@+id/button1"
android:layout_alignBottom="@+id/replyEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="24dp"
android:layout_height="48dp"
android:layout_marginRight="4dp"
android:layout_alignParentRight="true"
android:background="@color/hs_transparent_color"
android:contentDescription="@string/hs_sendbutton_title"
android:src="@drawable/hs_send_now_img"
android:src="@drawable/hs_send"
/>

</RelativeLayout>
Expand Down
Loading