def square_head_bar(self):
     """
         Summary:
             图片/故事集/直播左右滑动栏
     """
     id_ = 'com.jiuyan.infashion:id/square_header_bar'
     return recycler_view.RecyclerView(self.parent, id=id_)
 def hot_topic_recycler(self):
     """
         Summary:
             热门话题左右滑动区域
     """
     id_ = 'com.jiuyan.infashion:id/tag_recycler'
     return recycler_view.RecyclerView(self.parent, id=id_)
    def filter_bar(self):
        """
            Summary:
                滤镜效果栏
        Returns:

        """
        id_ = 'com.jiuyan.infashion:id/hrv_publish_filter'
        return recycler_view.RecyclerView(self.parent, id=id_)
 def story_tab_in_diary_album_bar(self):
     """
         Summary:
             写故事tab下,展开下拉列表后,in记相册栏
     """
     recycler_view_ = recycler_view.RecyclerView(
         self.parent, id='com.jiuyan.infashion:id/gallery_menu')
     return relative_layout.RelativeLayout(
         recycler_view_, type='android.widget.RelativeLayout')
 def hot_topic_list(self):
     """
         Summary:
             热门话题列表
     """
     rec_ = recycler_view.RecyclerView(
         self.parent, id='com.jiuyan.infashion:id/tag_recycler')
     return HotTopicList(rec_,
                         type='android.widget.RelativeLayout').topic_list
Beispiel #6
0
    def __init__(self, parent):
        super(TalentRecommendActivity, self).__init__(parent)

        #  等待初始化
        self.wait_for_element_present(
            self.base_parent, id='com.jiuyan.infashion:id/login_tv_title')

        self._scroll_view = recycler_view.RecyclerView(
            self.parent, id='com.jiuyan.infashion:id/square_rv_tag')
Beispiel #7
0
 def matrix_photo_album_list(self):
     """
         Summary:
             矩阵式照片排列列表
     """
     rec_view = recycler_view.RecyclerView(
         self.parent, id='com.jiuyan.infashion:id/timeline_recycler')
     return PhotoAlbumItemList(rec_view,
                               type='android.widget.FrameLayout').item_list
 def photo_available_list(self):
     """
         Summary:
             顶栏图片列表
     """
     recycler_view_ = recycler_view.RecyclerView(
         self.parent, id='com.jiuyan.infashion:id/rv_publish_photos')
     return relative_layout.RelativeLayoutList(
         recycler_view_,
         type='android.widget.RelativeLayout').relative_layout_list
Beispiel #9
0
 def popup_cover_list(self):
     """
         Summary:
             弹出框封面图片列表
     :return:
     """
     recycler_view_ = recycler_view.RecyclerView(
         self.base_parent, id='com.jiuyan.infashion:id/rv_cover_list')
     return relative_layout.RelativeLayoutList(
         recycler_view_,
         id='com.jiuyan.infashion:id/item_photo_root').relative_layout_list
    def __init__(self, parent):
        super(FocusTabActivity, self).__init__(parent)
        #  等待页面网络请求进行初始化

        if self.wait_for_element_present(
                self.parent, timeout=10,
                id='com.jiuyan.infashion:id/in_title_bar'):
            self._scroll_view = recycler_view.RecyclerView(
                self.parent,
                id='com.jiuyan.infashion:id/rv_attention_main_listview')
        else:
            log.logger.error('关注页初始化超时')
            raise
 def photo_available_list(self):
     """
         Summary:
             顶栏图片列表
     """
     if self.wait_for_element_present(
             parent=self.base_parent,
             id='com.jiuyan.infashion:id/hrv_publish_thumbnail'):
         recycler_view_ = recycler_view.RecyclerView(
             self.parent,
             id='com.jiuyan.infashion:id/hrv_publish_thumbnail')
         return PhotoItemList(recycler_view_,
                              type='android.widget.FrameLayout').item_list
     return None
Beispiel #12
0
 def wait_for_newest_photo_album(self):
     """
         Summary:
             等待网络请求获得最新的照片集合
     :return:
     """
     id_ = 'com.jiuyan.infashion:id/recycler'
     rec_ = recycler_view.RecyclerView(self.parent, id=id_)
     if self.wait_for_element_present(rec_,
                                      timeout=10,
                                      type='android.widget.LinearLayout'):
         log.logger.info("最新图片集合已加载")
         return True
     log.logger.error("最新图片加载失败")
     return False
Beispiel #13
0
 def wait_for_hotest_container(self):
     """
         Summary:
             等待网络请求获得最热门内容
     :return:
     """
     id_ = 'com.jiuyan.infashion:id/rv_tag_hottest'
     rec_ = recycler_view.RecyclerView(self.parent, id=id_)
     if self.wait_for_element_present(
             rec_,
             timeout=15,
             id='com.jiuyan.infashion:id/ll_hottest_container'):
         log.logger.info("最热内容已记载")
         return True
     log.logger.error("最热内容加载失败")
     return False
Beispiel #14
0
    def __init__(self, parent):
        super(StorySettingActivity, self).__init__(parent)

        # 滑动区域
        self._scroll_view = recycler_view.RecyclerView(
            self.parent, id='com.jiuyan.infashion:id/rv_story_set_story')
 def __init__(self, parent):
     super(DiscoverTabActivity, self).__init__(parent)
     self._scroll_view = recycler_view.RecyclerView(
         self.parent, id='com.jiuyan.infashion:id/swipe_container')
    def __init__(self, parent):
        super(LoginFriendRecommendActivity, self).__init__(parent)

        self._scroll_view = recycler_view.RecyclerView(
            self.parent, id='com.jiuyan.infashion:id/login_srl_recommend_friend')
Beispiel #17
0
 def __init__(self, parent):
     super(DiaryCover, self).__init__(parent)
     self._layout_view = recycler_view.RecyclerView(
         self.parent,
         id='com.jiuyan.infashion:id/diary_id_timeline_recyclerview')