Adjust layout for Slice InputRange

-Make title to slider aligned
-Add test cases

Bug: 147462114
Test: make -j50 RunSettingsRoboTests
Change-Id: Ib1d076f77eae75e4f861a80873117b6254729fe5
This commit is contained in:
Tim Peng
2020-03-01 11:34:16 +08:00
parent 5a4257deb4
commit db7d61d0a2
10 changed files with 145 additions and 3 deletions

View File

@@ -30,6 +30,8 @@ import java.util.List;
*/
public interface PanelContent extends Instrumentable {
int VIEW_TYPE_SLIDER = 1;
/**
* @return a icon for the title of the Panel.
*/
@@ -101,4 +103,11 @@ public interface PanelContent extends Instrumentable {
* @param callback the callback to add.
*/
default void registerCallback(PanelContentCallback callback) {}
/**
* @return a view type to customized it. 0 for default layout.
*/
default int getViewType() {
return 0;
}
}