UI Examples - sikuli/sieveable GitHub Wiki
- Sign In / Login
a) Sign in Button
MATCH app
WHERE
<Button android:text="Sign In"/>
RETURN app
b) Sign in TextView
MATCH app
WHERE
<TextView android:text="Sign In"/>
RETURN app
- Sign Up / Register
MATCH app
WHERE
<EditText android:inputType="textEmailAddress"/>
<EditText android:inputType="textPassword"/>
<EditText/>
<Button/>
RETURN app
- Settings / Preferences
MATCH app
WHERE
<PreferenceScreen>
<ListPreference/>
</PreferenceScreen>
<code class="android.content.Context" method="getSharedPreferences"/>
RETURN app
- Profile
MATCH app
WHERE
<LinearLayout>
<RelativeLayout>
<ImageView/>
</RelativeLayout/>
<RelativeLayout>
<TextView/>
</RelativeLayout>
</LinearLayout/>
RETURN app
- Maps
MATCH app
WHERE
<meta-data android:name="com.google.android.maps.v2.API_KEY"/>
<code class="com.google.android.gms.maps.GoogleMap" method="addMarker"/>
<fragment android:name="com.google.android.gms.maps.SupportMapFragment"/>
RETURN app
- Forms
MATCH app
WHERE
<ScrollView>
<TextView/>
<EditText/>
<EditText/>
<Button/>
<ScrollView/>
RETURN app
- Infinite Scrolling with a ProgressBar
MATCH app
WHERE
<ProgressBar/>
<code class="android.widget.AbsListView.OnScrollListener" method="onScroll"/>
<code class="android.widget.AbsListView.OnScrollListener" method="onScrollStateChanged"/>
RETURN app
- Scrolling
a) Horizontal ListView Using a third party library.
MATCH app
WHERE
<org.lucasr.twowayview.widget.TwoWayView/>
RETURN app
b) Horizontal ScrollView
MATCH app
WHERE
<HorizontalScrollView>
<LinearLayout android:orientation="horizontal"/>
</HorizontalScrollView>
RETURN app
c) Vertical ScrollView
MATCH app
WHERE
<ScrollView>
<LinearLayout android:orientation="vertical"/>
</ScrollView>
RETURN app
- Scrollable TextView
MATCH app
WHERE
<TextView android:scrollbars="vertical"/>
RETURN app
- Pull to Refresh
MATCH app
WHERE
<android.support.v4.widget.SwipeRefreshLayout>
<ListView/>
</android.support.v4.widget.SwipeRefreshLayout>
<code class="android.support.v4.widget.SwipeRefreshLayout" method="setOnRefreshListener" />
RETURN app
- Alert Dialogs
MATCH app
WHERE
<LinearLayout>
<Button/>
</LinearLayout>
<code class="android.app.AlertDialog" method="setMessage"/>
<code class="android.app.Dialog" method="show"/>
RETURN app
- TimePicker Dialogs
MATCH app
WHERE
<LinearLayout>
<Button/>
</LinearLayout>
<code class="android.app.TimePickerDialog.OnTimeSetListener" method="onTimeSet"/>
RETURN app
- DatePicker Dialogs
MATCH app
WHERE
<LinearLayout>
<Button/>
</LinearLayout>
<code class="android.app.DatePickerDialog" method="getDatePicker"/>
RETURN app
- App Rating
MATCH app
WHERE
<code class="android.app.AlertDialog.Builder" method="create"/>
<Button android:text="(Rate*)"/>
RETURN app
- 4 Stars Rating bar
MATCH app
WHERE
<RatingBar android:numStars="4"/>
<code class="android.widget.RatingBar" method="getRating"/>
RETURN app
- Toggle Button
MATCH app
WHERE
<ToggleButton/>
<code class="android.widget.CompoundButton" method="isChecked"/>
RETURN app
- Switch Button
MATCH app
WHERE
<Switch/>
<code class="android.widget.CompoundButton" method="isChecked"/>
RETURN app
- Action Bar with Tabs
MATCH app
WHERE
<code class="android.app.ActionBar.Tab" method="setTabListener"/>
<code class="android.app.ActionBar" method="addTab"/>
RETURN app
- Navigation Drawer
MATCH app
WHERE
<android.support.v4.widget.DrawerLayout/>
<code class="android.support.v4.widget.DrawerLayout" method="setDrawerListener"/>
RETURN app
- Up Button
MATCH app
WHERE
<activity android:parentActivityName="(*)"/>
<code class="android.app.ActionBar" method="setDisplayHomeAsUpEnabled"/>
RETURN app
- Swipe Views (View Pager with Fragment)
MATCH app
WHERE
<android.support.v4.view.ViewPager/>
<code class="android.support.v4.view.ViewPager" method="setAdapter"/>
<code class="android.support.v4.app.FragmentPagerAdapter" method="getItem"/>
RETURN app
- Fragments
MATCH app
WHERE
<fragment/>
<code class="android.app.Fragment" method="onCreate"/>
RETURN app
- Batch actions inside a contextual menu for a ListView.
MATCH app
WHERE
<code class="android.widget.ListView" method="setMultiChoiceModeListener"/>
<code class="android.widget.ListView" method="setChoiceMode"/>
RETURN app
- Batch actions inside a contextual menu for a GridView.
MATCH app
WHERE
<code class="android.widget.GridView" method="setMultiChoiceModeListener"/>
<code class="android.widget.GridView" method="setChoiceMode"/>
RETURN app
- Popup Menu
MATCH app
WHERE
<menu>
<item/>
<item/>
</menu>
<code class="android.widget.PopupMenu" method="getMenuInflater"/>
<code class="android.widget.PopupMenu" method="show"/>
RETURN app
- Action Bar with actions
MATCH app
WHERE
<menu>
<item android:showAsAction="ifRoom"/>
</menu>
<code class="android.app.Activity" method="getMenuInflater"/>
RETURN app