Android Wear type detection - Round Or Square

前端 未结 4 1749
悲&欢浪女
悲&欢浪女 2020-12-30 06:56

I am curious to know about the wear type, whether it\'s round or square, because on the basis of device type I want to make different views for round and square. From This

4条回答
  •  滥情空心
    2020-12-30 07:11

    Use WatchViewStub to inflate the view.Later in the layout file you may specify the layout for each watch type as below.It will automatically pick the correct layout as required by the device.

    
    

提交回复
热议问题