This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity android:name=".SampleActivity" | |
android:label="sample" android:theme="@style/Theme.Titanium" | |
android:configChanges="keyboardHidden|orientation"> | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
<data android:scheme="mobileapp" /> | |
</intent-filter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.hockeyapp.android.demo; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import org.acra.ACRA; | |
import org.acra.collector.CrashReportData; | |
import org.acra.ReportField; | |
import org.acra.sender.ReportSender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android" > | |
<item> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> | |
<stroke android:width="1dp" android:color="#FFFFFF" /> | |
<gradient | |
android:startColor="#679031" | |
android:centerColor="#679031" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@android:id/text1" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceListItemSmall" | |
android:gravity="center_vertical" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:textColor="#000" | |
android:background="?android:attr/activatedBackgroundIndicator" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//OnClickListener stub | |
public class ButtonListener implements OnClickListener { | |
private UpdateUIListener mUIListener; | |
public ButtonListener(UpdateUIListener uiListener){ | |
mUIListener = uiListener; | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.bsr.android.util; | |
import com.example.app.BuildConfig; | |
import timber.log.Timber; | |
/** | |
* Wrapper class for Timber that evaluates <code>BuildConfig.DEBUG</code> on construction | |
* and uses Timber.DEBUG or Timber.PROD appropriately. In PROD mode, no logging is done at all. | |
* | |
* @author Sebastian Engel <engel.sebastian@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:constantSize="true"> | |
<item android:state_focused="false" android:state_pressed="false"> | |
<shape android:shape="rectangle"> | |
<solid android:color="@android:color/transparent" /> | |
<stroke android:width="0dp" android:color="@android:color/transparent" /> | |
<padding android:bottom="1dp" android:left="1dp" android:right="1dp" android:top="1dp" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="rectangle" | |
android:dither="true"> | |
<corners android:radius="2dp"/> | |
<solid android:color="#ccc" /> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ItemClickSupport itemClick = ItemClickSupport.addTo(recyclerView); | |
itemclick.setOnItemClickListener(new OnItemClickListener() { | |
@Override | |
public void onItemClick(RecyclerView p, View c, int pos, long id) { | |
... | |
} | |
}); | |
itemClick.setOnItemLongClickListener(new OnItemLongClickListener() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.hockeyapp.android.demo; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import org.acra.ACRA; | |
import org.acra.collector.CrashReportData; | |
import org.acra.ReportField; | |
import org.acra.sender.ReportSender; |