Created
December 2, 2016 16:50
-
-
Save amyu/929709ba50e2119b1e7fc6ca5e8dd737 to your computer and use it in GitHub Desktop.
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
class TestData { | |
@Language("XML") | |
static String USE_NUMBER_PICKER_WHEN_USE_DATABINDING = "" + | |
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + | |
"<layout>\n" + | |
"\n" + | |
" <data>\n" + | |
"\n" + | |
" <variable\n" + | |
" name=\"hgoe\"\n" + | |
" type=\"int\" />\n" + | |
" </data>\n" + | |
"\n" + | |
" <LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + | |
" android:layout_width=\"match_parent\"\n" + | |
" android:layout_height=\"match_parent\"\n" + | |
" android:orientation=\"vertical\">\n" + | |
"\n" + | |
" <NumberPicker\n" + | |
" android:layout_width=\"wrap_content\"\n" + | |
" android:layout_height=\"wrap_content\"\n" + | |
" android:value=\"@={hgoe}\" />\n" + | |
"\n" + | |
" </LinearLayout>\n" + | |
"\n" + | |
"</layout>"; | |
@Language("XML") | |
static String USE_DATABINDINGABLE_NUMBER_PICKER_WHEN_USE_DATABINDING = "" + | |
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + | |
"<layout>\n" + | |
"\n" + | |
" <data>\n" + | |
"\n" + | |
" <variable\n" + | |
" name=\"hgoe\"\n" + | |
" type=\"int\" />\n" + | |
" </data>\n" + | |
"\n" + | |
" <LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + | |
" android:layout_width=\"match_parent\"\n" + | |
" android:layout_height=\"match_parent\"\n" + | |
" android:orientation=\"vertical\">\n" + | |
"\n" + | |
" <DatabindingableNumberPicker\n" + | |
" android:layout_width=\"wrap_content\"\n" + | |
" android:layout_height=\"wrap_content\"\n" + | |
" android:value=\"@={hgoe}\" />\n" + | |
"\n" + | |
" </LinearLayout>\n" + | |
"\n" + | |
"</layout>"; | |
@Language("XML") | |
static String USE_NUMBER_PICKER_WHEN_NOT_USE_DATABINDING = "" + | |
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + | |
"<LinearLayout\n" + | |
" xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + | |
" android:layout_width=\"match_parent\"\n" + | |
" android:layout_height=\"match_parent\"\n" + | |
" android:orientation=\"vertical\">\n" + | |
"\n" + | |
" <NumberPicker\n" + | |
" android:id=\"@+id/number_picker\"\n" + | |
" android:layout_width=\"wrap_content\"\n" + | |
" android:layout_height=\"wrap_content\" />\n" + | |
"\n" + | |
"</LinearLayout>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment